const state = {
	companyChangedSign: false,
	companyId: 'desktop',
	flightShow: false,
	flightMess: null,
}

const mutations = {
	setCompanyId: (state, companyId) => {
		state.companyId = companyId
	},
	setCompanyChangedSign: (state, companyChangedSign) => {
		state.companyChangedSign = companyChangedSign
	},
	setFlightShow: (state, flightShow) => {
		state.flightShow = flightShow
	},
	setFlightMess: (state, flightMess) => {
		state.flightMess = flightMess
	},
}

const actions = {
	setCompanyIdFun({ commit }, companyId) {
		commit('setCompanyId', companyId)
	},
	setCompanyChangedSignFun({ commit }, companyChangedSign) {
		commit('setCompanyChangedSign', companyChangedSign)
	},
	setFlightShowFun({ commit }, flightShow) {
		commit('setFlightShow', flightShow)
	},
	setFlightMessFun({ commit }, flightMess) {
		commit('setFlightMess', flightMess)
	},
}

export default {
	namespaced: true,
	state,
	mutations,
	actions,
}
